<?php
// +----------------------------------------------------------------------
// | Description: 1
// +----------------------------------------------------------------------
// | Author: orchief
// +----------------------------------------------------------------------
// | Date: 2018-01-24 15:37:11
// +----------------------------------------------------------------------

namespace app\client\model;

use app\common\model\CommonClient;

class Product extends CommonClient
{
    protected $fuzzyConditions = ['ProductName', 'ProductCode', 'Title', 'MobbileDescription', 'ShortDescription', 'Description'];
    protected $clearConditions = ['CategoryId'];
    protected $returnFields = '
        shop_goods_products.*,
        shop_goods_categories.CategoryName,
        shop_goods_brand.BrandName
    ';
    protected $rangeConditions = null;
    protected $union_fuzzyConditions = null;
    protected $foreignConditions = [
        'shop_goods_categories'  => ['Id', 'CategoryId'],
        'shop_goods_brand'  => ['Id', 'BrandId'],
    ];
    protected $name = 'shop_goods_products';
}
